﻿using System;

namespace DMS.DTOs
{
    public class InvoiceDTO : IDTO
    {
        public int Id { get; set; }

		public int CustomerId { get; set; }
		public string CustomerFirstName { get; set; }
        public string CustomerLastName { get; set; }
        
        public DateTime InvoiceDate { get; set; }
        public decimal Total { get; set; }

        public string BillingCountry { get; set; }
        public string BillingState { get; set; }
        public string BillingCity { get; set; }

    }

    public class InvoiceWithLinesDTO  : InvoiceDTO
    {
        public InvoiceLineDTO[] Lines { get; set; }
    }

    public class InvoiceLineDTO : IDTO
    {
        public int Id { get; set; }
		public int TrackId { get; set; }
		public string TrackName { get; set; }
        public string ArtistName { get; set; }
        public string AlbumTitle { get; set; }
        public int Quantity { get; set; }
        public decimal UnitPrice { get; set; }

    }
}
